package jvmStudy.demo01.ClassLoader;

public class test04 {


    static class Father{
         static int a=10;
         static {
             a=20;
         }
    }
    static class Son extends Father{

        static int b=a;
    }

    public static void main(String[] args) {
        System.out.println(Son.b);  //20   解释：先父类clinit再执行子类的clinit
    }
}
